import request from "@/utils/request";


export function list(params) {
    return request.post('/api/user/list', {...params});
}

export function add(params) {
    return request.post('/api/user/add', {...params});
}

export function edit(params) {
    return request.post('/api/user/edit', {...params});
}

export function del(params) {
    return request.post('/api/user/del', {...params});
}

export function setting(params) {
    return request.post('/api/User/setting', {...params});
}

export function resetUserPassword(params) {
    return request.post('/api/User/setUserPassword', {...params});
}

export function listRole(params) {
    return request.post('/api/UserRole/list', {...params});
}

export function addRole(params) {
    return request.post('/api/UserRole/add', {...params});
}